package cn.iocoder.yudao.module.infra.service.job;

import cn.iocoder.yudao.module.infra.api.service.JobApi;
import org.quartz.SchedulerException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class JobApiImpl implements JobApi {

    @Resource
    private JobService jobService;

    @Override
    public void triggerJob(Long id) throws SchedulerException {
        jobService.triggerJob(id);
    }
}
